package com.zg.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zg.dao.ProgramListMapper;
import com.zg.pojo.ProgramList;
import com.zg.service.ProgramListService;

@Service("programList")
public class ProgramListServiceImpl implements ProgramListService{

	@Resource
	private ProgramListMapper programListDao;
	
	@Override
	public ProgramList programListById(int id){
		return this.programListDao.selectByPrimaryKey(id);
	}

	@Override
	public int insert(ProgramList record) {
		return this.programListDao.insert(record);
	}

	@Override
	public int updateByPrimaryKey(ProgramList record) {
		return this.programListDao.updateByPrimaryKeySelective(record);
	}

	@Override
	public int deleteByPrimaryKey(int id) {
		return this.programListDao.deleteByPrimaryKey(id);
	}

}
